const prodPlugins=[]
/* 产品发布阶段需要的依赖 */
if(process.env.NODE_ENV==='production')
{
  prodPlugins.push("transform-remove-console");
}
module.exports = {
  "presets": [
    "@vue/cli-plugin-babel/preset"
  ],
  "plugins": [
    [
      "component",
      {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }
    ],
    //f发布阶段我们需要的依赖
    ...prodPlugins,
    /* 懒加载 */
    "@babel/plugin-syntax-dynamic-import"
  ]
}
